﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IList<Prodma.DataAccess.Models.LoginUser>>" %>

<div class="listTitleContainer">
    <div class="listTitleCenter-50">#</div>
    <div class="listTitleLeft-200">Kullanıcı Adı</div>
    <div class="listTitleCenter-200">Adı Soyadı</div>
    <div class="listTitleCenter-150">Zaman</div>
</div>

<div class="listRowContainer">
    
<% int counter = 1; %>
    
<% foreach (Prodma.DataAccess.Models.LoginUser user in ViewData.Model) %>
<% { %>
     <% if (counter % 2 != 0) %>
     <% { %>
         <div class="listRow1">
            <div class="listColumnCenter-50"><%=counter %></div>
            <div class="listColumnLeft-200"><%=user.UserName %></div>
            <div class="listColumnCenter-200"><%=user.FullName %></div>
            <div class="listColumnCenter-150"><%=user.DateTime.ToShortDateString() + " | " + user.DateTime.ToShortTimeString() %></div>
        </div>
     <% } %>
     <% else %>
     <% { %>
          <div class="listRow2">
            <div class="listColumnCenter-50"><%=counter %></div>
            <div class="listColumnLeft-200"><%=user.UserName %></div>
            <div class="listColumnCenter-200"><%=user.FullName %></div>
            <div class="listColumnCenter-150"><%=user.DateTime.ToShortDateString() + " | " + user.DateTime.ToShortTimeString() %></div>
         </div>
     <% } %>
     <% counter++; %>
<% } %>

</div>